/*
 * @Author: your name
 * @Date: 2020-11-27 09:39:39
 * @LastEditTime: 2021-07-14 11:21:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /C20Driver/lib/model/pickup_model.dart
 */

class PickupModel {
  String id;
  String unionId;
  String orderId;
  int type;
  int backTrip;
  String userId;
  String userName;
  String businessId;
  String businessName;
  String companyId;
  String companyName;
  String routeId;
  String routeName;
  int provId;
  String province;
  int cityId;
  String city;
  int distId;
  String district;
  String detailAddress;
  String fullAddress;
  String destLongitude;
  String destLatitude;
  String airportId;
  String airport;
  String flightNo;
  String flightTime;
  int num;
  String contactName;
  String contactMobile;
  String remark;
  String price;
  String totalPrice;
  String payPrice;
  String driverId;
  String driverName;
  String driverPhone;
  int status;
  int payState;
  String payType;
  int postPaid;
  int exclusive;
  String payTime;
  String platformFee;
  String driverFee;
  String createTime;
  String updateTime;
  String statusText;
  String payStateText;
  String typeText;
  String carName;
  String carNum;
  String carId;

  PickupModel(
      {this.id,
      this.unionId,
      this.orderId,
      this.type,
      this.backTrip,
      this.userId,
      this.userName,
      this.businessId,
      this.businessName,
      this.companyId,
      this.companyName,
      this.routeId,
      this.routeName,
      this.provId,
      this.province,
      this.cityId,
      this.city,
      this.distId,
      this.district,
      this.detailAddress,
      this.fullAddress,
      this.destLongitude,
      this.destLatitude,
      this.airportId,
      this.airport,
      this.flightNo,
      this.flightTime,
      this.num,
      this.contactName,
      this.contactMobile,
      this.remark,
      this.price,
      this.totalPrice,
      this.payPrice,
      this.driverId,
      this.driverName,
      this.driverPhone,
      this.status,
      this.payState,
      this.payType,
      this.postPaid,
      this.payTime,
      this.platformFee,
      this.driverFee,
      this.createTime,
      this.updateTime,
      this.statusText,
      this.payStateText,
      this.exclusive,
      this.carName,
      this.carNum,
      this.carId,
      this.typeText});

  PickupModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    unionId = json['union_id'];
    orderId = json['order_id'];
    type = json['type'];
    backTrip = json['back_trip'];
    userId = json['user_id'];
    userName = json['user_name'];
    businessId = json['business_id'];
    businessName = json['business_name'];
    companyId = json['company_id'];
    companyName = json['company_name'];
    routeId = json['route_id'];
    routeName = json['route_name'];
    provId = json['prov_id'];
    province = json['province'];
    cityId = json['city_id'];
    city = json['city'];
    distId = json['dist_id'];
    district = json['district'];
    detailAddress = json['detail_address'];
    fullAddress = json['full_address'];
    destLongitude = json['dest_longitude'];
    destLatitude = json['dest_latitude'];
    airportId = json['airport_id'];
    airport = json['airport'];
    flightNo = json['flight_no'];
    flightTime = json['flight_time'];
    num = json['num'];
    contactName = json['contact_name'];
    contactMobile = json['contact_mobile'];
    remark = json['remark'];
    price = json['price'];
    totalPrice = json['total_price'];
    payPrice = json['pay_price'];
    driverId = json['driver_id'];
    driverName = json['driver_name'];
    driverPhone = json['driver_phone'];
    status = json['status'];
    payState = json['pay_state'];
    payType = json['pay_type'];
    postPaid = json['post_paid'];
    payTime = json['pay_time'];
    platformFee = json['platform_fee'];
    driverFee = json['driver_fee'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    statusText = json['status_text'];
    carName = json['car_name'];
    carNum = json['car_num'];
    carId = json['car_id'];
    payStateText = json['pay_state_text'];
    typeText = json['type_text'];
    exclusive = json['exclusive'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['union_id'] = this.unionId;
    data['order_id'] = this.orderId;
    data['type'] = this.type;
    data['back_trip'] = this.backTrip;
    data['user_id'] = this.userId;
    data['user_name'] = this.userName;
    data['business_id'] = this.businessId;
    data['business_name'] = this.businessName;
    data['company_id'] = this.companyId;
    data['company_name'] = this.companyName;
    data['route_id'] = this.routeId;
    data['route_name'] = this.routeName;
    data['prov_id'] = this.provId;
    data['province'] = this.province;
    data['city_id'] = this.cityId;
    data['city'] = this.city;
    data['dist_id'] = this.distId;
    data['district'] = this.district;
    data['detail_address'] = this.detailAddress;
    data['full_address'] = this.fullAddress;
    data['dest_longitude'] = this.destLongitude;
    data['dest_latitude'] = this.destLatitude;
    data['airport_id'] = this.airportId;
    data['airport'] = this.airport;
    data['flight_no'] = this.flightNo;
    data['flight_time'] = this.flightTime;
    data['num'] = this.num;
    data['contact_name'] = this.contactName;
    data['contact_mobile'] = this.contactMobile;
    data['remark'] = this.remark;
    data['price'] = this.price;
    data['total_price'] = this.totalPrice;
    data['pay_price'] = this.payPrice;
    data['driver_id'] = this.driverId;
    data['driver_name'] = this.driverName;
    data['driver_phone'] = this.driverPhone;
    data['status'] = this.status;
    data['pay_state'] = this.payState;
    data['pay_type'] = this.payType;
    data['post_paid'] = this.postPaid;
    data['pay_time'] = this.payTime;
    data['platform_fee'] = this.platformFee;
    data['driver_fee'] = this.driverFee;
    data['create_time'] = this.createTime;
    data['update_time'] = this.updateTime;
    data['status_text'] = this.statusText;
    data['pay_state_text'] = this.payStateText;
    data['type_text'] = this.typeText;
    data['exclusive'] = this.exclusive;
    data['car_name'] = this.carName;
    data['car_num'] = this.carNum;
    data['car_id'] = this.carId;
    return data;
  }
}
